package com.server;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Greg.chen on 2016-03-21.
 */
public class ServerMain {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");

        NettyServer server = applicationContext.getBean(NettyServer.class);

        server.bind();
    }
}
